home *** CD-ROM | disk | FTP | other *** search
- Path: ix.netcom.com!netnews
- From: jlilley@ix.netcom.com (John Lilley)
- Newsgroups: comp.lang.c++
- Subject: Re: C++ newbie asks for help
- Date: 18 Mar 1996 18:15:43 GMT
- Organization: Netcom
- Message-ID: <4ik98f$14k@reader2.ix.netcom.com>
- References: <31488AC8.1557@cco.caltech.edu> <4ik2vd$euq@dub-news-svc-4.compuserve.com>
- NNTP-Posting-Host: den-co8-14.ix.netcom.com
- Mime-Version: 1.0
- Content-Type: Text/Plain; charset=US-ASCII
- X-NETCOM-Date: Mon Mar 18 10:15:43 AM PST 1996
- X-Newsreader: WinVN 0.99.7
-
- In article <4ik2vd$euq@dub-news-svc-4.compuserve.com>,
- 76623,2065@compuserve.com says...
- >
- >In <31488AC8.1557@cco.caltech.edu>, Xuhua Li <xuhua@cco.caltech.edu> writes:
- >>The following C++ programs from Stephen Prata's book <<C++ Primer Plus>>
- >>does not work properly compiled by Microsoft C++ 4.0 under Window 95.
- >>Can anybody help me out there?
- >
- ><snip>
- >
- >In short, to solve your problem end your cout's with 'endl' instead of \n
- >like this:
- >
- > cout << "starting\a" << endl;
- >instead of
- > cout << "starting\a\n";
-
-
- Good idea, but I tried this first. It seems to be more complex
- than that, like cout is getting closed as soon as EOF is encountered
- on cin. Anyone else?
-
- John Lilley
-
-